package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author lilele
 */
@Getter
@Setter
@TableName(value = "admin_user_department")
public class AdminUserDepartmentEntity implements Serializable {
    @NotEmpty(message = "用户id不能为空")
    @TableField(value = "userId")
    private String userId;

    @NotEmpty(message = "部门id不能为空")
    @TableField(value = "departmentId")
    private String departmentId;
}
